/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import javax.swing.tree.DefaultMutableTreeNode;
import type.hitoType;

/**
 *
 * @author JorgeLuis
 */
public class treeModel {
    
    private int                     id = 0;
    private int                     idParent = 0;
    private int                     hastCode = 0;
    private String                  name = "";
    private type.hitoType           type = null;
    private DefaultMutableTreeNode  nodo;
    
    public treeModel(int id, int idParent, int hastCode, String name, type.hitoType type, DefaultMutableTreeNode node) {
        this.id         = id;
        this.idParent   = idParent;
        this.hastCode   = hastCode;
        this.name       = name;
        this.type       = type;
        this.nodo       = node;
    }

    public int getHastCode() {
        return hastCode;
    }

    public int getId() {
        return id;
    }

    public int getIdParent() {
        return idParent;
    }

    public String getName() {
        return name;
    }

    public void setHastCode(int hastCode) {
        this.hastCode = hastCode;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setIdParent(int idParent) {
        this.idParent = idParent;
    }

    public void setName(String name) {
        this.name = name;
    }

    public DefaultMutableTreeNode getNodo() {
        return nodo;
    }

    public void setNodo(DefaultMutableTreeNode nodo) {
        this.nodo = nodo;
    }

    public hitoType getType() {
        return this.type;
    }

    public void setType(hitoType type) {
        this.type = type;
    }
    
    
    
    
    
}
